﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class test_DataSet2DataBase : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        DataSet ds = new DataSet();
        ds = BLL.DataBaseHelper.instance.GetList("Accounts");
        ds.DataSetName = "mydatabase";
        ds.Tables[0].TableName = "mytable";

    }
    private void CreateDataBase(DataSet ds)
    {
        Common.DataBaseHelper.CreateAccess(Server.MapPath("~/upload/" + ds.DataSetName + ".mdb"));

        //BLL.DataBaseHelper.instance.CreateTable(
        
    }

}
